package handle

import (
	"AcsGo/internal/domain"
	"AcsGo/logger"
)

var lg = logger.InitLog()

func HandleLogin(str string) (string, error) {
	loginRequest, err := domain.HandleLoginRequest(str)
	if err != nil {
		return "", err
	}
	lg.Debugf("loginRequest: %v", loginRequest)
	var screenMessage = ""
	loginResponse := domain.InitLoginResponse(screenMessage)
	sb := loginResponse.StringFormat()
	lg.Debugf("loginResponse: %v", sb)
	return sb, nil
}
